

    <div class="widget-top">
        <h4>Nouveau Filière</h4>
    </div>
    <div class="form-grid">
        <form id="form_filiere" class="leftLabel"  {{ form_enctype(form) }} method="POST" class="fos_user_registration_register">
            <li>
                <label class="fldTitle">Designation</label>
                <div class="fieldwrap">
                    <span class="fldcol left">
                    {{form_widget(form.designation,{'attr':{'class':'full'}})}}
                    {{form_widget(form._token)}}
                        </span>
                       
                        </div>
                    </li>
                    <li class="buttons bottom-round noboder">
                        <div class="fieldwrap" style="margin-left: 583px;">
                            <input onclick="saveFiliere()" class="submit-button" type="button" value="{{ 'Submit'|trans({}, 'FOSUserBundle') }}" name="">
                            <input class="submit-button" type="reset" value="{{ 'Reset'|trans({}, 'FOSUserBundle') }}" name="">
                            {#<a href="{{path('int_list_etudient')}}"><input class="submit-button" type="button" value="Router à la liste" name=""></a>>#}
                        </div>
                    </li>
                </form>
<script>
function saveFiliere(){
        $.ajax({
            type: 'post',
                url: '{{path('int_add_edit_filiere')}}',
                data: $('#form_filiere').serialize()+'&id={{id}}',
                success: function(response) {
                    $('#list_filieres').html(response)
                    $('#form_filliere').html('')

                }
            })
        }
    </script>

            </div>
        
